-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support for wildcards #46
Conversation
As per #26, however without "overall" improvement of just allowing to put id into index, limiting to 256kb or so, only wildcard resolving part |
Thanks for the PR! I'm kicking off some discussion internally around whether to accept this PR pending a few decisions, e.g.
|
Let me put my 2 pennies. |
@angrymouse Really appreciate you digging in on this! My initial thoughts:
tl;dr - great work so far, but let's switch to IDs for wildcards and include a version bump + check as part of this so that users can communicate their expectations about manifest features. We can continue discussion on whether we want to drop paths for index. We'll also wants tests too, but we can dig into that after we're through discussing the functionality. Oh, PRs should be against |
About 3rd, I don't think there will be a lot of issues specifically for wildcards in supporting paths (because wildcard is processed as the last thing, after every path was checked) @djwhitt |
Bumped version to 0.1.1, made resolving with only id possible |
This is only true as long as we don't enforce path sorting. If in a future version we do as the original comment suggested and only support on-demand parsing with sorted paths, we can stop parsing early. Also just to set expectations - there will probably be a little pause on this over the weekend, but we'll definitely pick back up next week and keep it moving. |
@angrymouse Apologies for the slow follow up this week. We were fighting some ops battles yesterday. I think we can move forward with this after a couple adjustments:
Let's bump to 0.2 since we're adding new functionality as opposed to fixing issues (we might as well follow semver unless we have a specific reason to do something different). Also, now that we have consensus on the changes, go ahead and add tests to cover the wildcard functionality. Finally, just so everyone following along is aware - once the dev work here is completed, there will probably still be a bit of a delay before this is available on arweave.net. For clarity we may also want to update the ANS spec before rolling it out there. |
Hey, @angrymouse. Anything else you need clarity on from us to wrap this up? I think all we need is the version tweak and tests and we can get it into |
Hey @djwhitt ! Sorry didn't check out... Will do rn |
@djwhitt done |
Hey @djwhitt , any updates? |
@angrymouse Thanks for the tweaks! Just one more request on the tests - can you include a test for the case where the wildcard uses a |
@angrymouse I just pulled this to see if I could add the requested test myself and discovered the test you added is failing. I'm happy to merge when that's debugged and the requested test is added. |
Thanks, I'm not good in writing tests |
To be clear, I was requesting that you debug and fix the test before we move on. I'm not actually certain the code is working in it's current state. Did you manually test it somehow? |
Hey @djwhitt , no, I didn't test it and I don't recall you asking for that. Also, to make it clear, it's just an open, enthusiastic, non-inventivized effort to help your software, meaning I don't really have to do the corporate logic like tests |
But the error seems to come from types, not the logic |
So I'd prefer if this discussion went without "requested" and some accusations of me not doing enough QA on my code before PR - I don't work for AR.IO and don't get anything off this PR. |
I'm not trying to make accusations. It was just unclear to me if the code works, so I was curious how or if you verified that yourself. PRs are work for the maintainers. If we get a PR and we're uncertain that it's working it's going to take more effort to integrate it. We will still eventually integrate it assuming it's in line with the the project goals (this one is). It's just that the more work there is for us to do on the PR, the more it becomes subject to our (ar.io) priorities rather than the person making the PR.
That's just because we run build before tests in the actions. If you run the tests locally you'll see a different error. The first error you'll see is from malformed JSON in the test. If you fix that you'll see another error which I haven't dug into yet. |
Will look into fixing it, thanks for understanding |
@angrymouse Thanks! I know PR processes can be frustrating too. I appreciate your patience as we continue to refine ours. 🙏 |
@jim-toth Happy to have you dig in on testing this if you have time (since you called it out as blocking). Though, be sure to coordinate with @angrymouse to avoid duplicate effort. |
Closing. Release 14 includes support for |
No description provided.